package com.zhichubao.enterprise.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangzhiwei
 * @since 2021-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("legal_entity")
@ApiModel(value="LegalEntity对象", description="")
public class LegalEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long tenantId;

    @ApiModelProperty(value = "社会信用代码")
    private String creditCode;

    @ApiModelProperty(value = "法律实体代码")
    private String legalEntityCode;

    @ApiModelProperty(value = "名称")
    private String legalEntityName;

    private Long parentId;

    @ApiModelProperty(value = "国家编号")
    private Integer country;

    @ApiModelProperty(value = "省编号")
    private Integer province;

    @ApiModelProperty(value = "市编号")
    private Integer city;

    @ApiModelProperty(value = "地址详情")
    private String addressDetail;

    @ApiModelProperty(value = "银行名称")
    private String bankName;

    @ApiModelProperty(value = "银行编码")
    private String bankNumber;

    @ApiModelProperty(value = "电话")
    private String teleNumber;

    private String creatorName;

    private LocalDateTime createTime;

    private String updateName;

    private LocalDateTime updateTime;

    private Boolean deleteStatus;

    private Boolean isWrittenOff;

    @ApiModelProperty(value = "0 停用 1启用")
    private Boolean inUse;

    @ApiModelProperty(value = "第三方系统编码")
    private String otherSystemCode;


}
